import createMenus from './_common/routermenu'
import {header} from './_common/routerpageheader'

const lib = ao2.lib
const LoadingComponent = ao2.LoadingComponent
const path = ''
// const path = location.hash.slice(1)

Pager.pages([
  {url: '/order/empty', content: import('./_order/empty')},
  {url: '/order/test', content: import('./_order/list')},
  {url: '/order/collections', content: import('./_order/collections/index')},
  {url: '/order/detail', content: import('./_order/detail/index')},
  {url: '/order/normal', content: import('./_order/normal/index')},
], {
  header: function () {
    return <header.UI/>
  },
  menus: function() {
    return <LoadingComponent content={createMenus()} loadingClass="router-menu-list router-menus flex-column justify-between" />
  },
  select: path || '/order/empty'
})

